<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<html>
<body>
<h2>我是服务器：${pageContext.request.localPort}</h2>
<h2>当前sessionId：${pageContext.session.id}</h2>
<h2>编辑页面</h2>
<form action="${pageContext.request.contextPath}/resume/save" method="post">

    <table border="1px">
        <tr>
            <td>编号：</td>
            <td><input type="text" readonly name="id" value="${resume.id}"></td>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><input type="text" name="name" value="${resume.name}"></td>
        </tr>
        <tr>
            <td>电话：</td>
            <td><input type="text" name="phone"  value="${resume.phone}"></td>
        </tr>
        <tr>
            <td>地址：</td>
            <td><input type="text" name="address"  value="${resume.address}"></td>
        </tr>
        <tr>
            <td colspan="2">
                <div  align="center">
                    <button onclick="save()">保存</button>
                </div>
            </td>
        </tr>
    </table>
</form>
</body>
<script>
    function save() {
        document.forms[0].submit();
    }
</script>
</html>
